package com.example.demo.controller;


import com.example.demo.entity.ListingCalendar;
import com.example.demo.service.IListingCalendar;
import com.example.demo.utils.R;
import com.example.demo.vo.ListingCalendarVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "新股上市日历模块")
@RestController
@RequestMapping("/listingCalendar")
public class ListingCalendarController {

    @Autowired
    private IListingCalendar service;

    @ApiOperation("分页查询新股上市日历")
    @GetMapping("/select")
    public R<List<ListingCalendarVo>> selectListingCalendarList(Integer pageNum, Integer pageSize){
        return R.success("查询成功",service.selectListingCalendarList(pageNum, pageSize));
    }

}
